<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" href="${initParam.root }css/button.css">
<link rel="stylesheet" type="text/css" href="${initParam.root }css/table.css">
<link rel="stylesheet" type="text/css" href="${initParam.root }css/index.css">
<link rel="stylesheet" type="text/css" href="${initParam.root }css/font.css">
<script>
	$(document).ready(function(){
		$("#homeBtn").click(function(){
			location.href="${initParam.root}";
		});
		$("#search").click(function(){
			location.href="${initParam.root}mypage/searchForm.do";
		});
		$("#meBtn").click(function(){
			location.href="${initParam.root}auth_myinfo.do";
		});
		$("#searchBtn").click(function(){
			if($("#word").val()!="")
				location.href="${initParam.root}mypage/totalSearch.do?word="+$("#word").val();
		});
		$("#word").keypress(function(event){
			if(event.keyCode == 13){
				$("#searchBtn").click();
				return false;
			}
		});
	});
</script>
<style type="text/css">
body {
	text-align: center;
	vertical-align: middle;
}

input{
	border: 4px solid  #0454a4;
	/* border-radius: 5px; */
	-webkit-appearance: none;
	height: 30px;
	width: 350px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	padding-left: 5px;
}
#header{
		padding: 5px; /* 내용과 테두리 사이 간격 할당 */
		text-align: center;
		border-bottom: 1px solid silver;
}
#header table td{
		border-right: 1px solid silver;
		border-left: 1px solid silver;
}
</style>
</head>
<body>
<div id="header">
<c:if test="${sessionScope.loginMember.point == -1}">
	<img src="${initParam.root}img/adminmode.png" height="23" align="left" style="position: absolute; left: 10px;">
</c:if>
	<table align="center">
		<tr>
			<td>
				<img src="${initParam.root}img/home.png" height="20" id="homeBtn">
			</td>
			<td>
				<img src="${initParam.root}img/search.png" height="15" id="tsearch">
			</td>
			<td>
				<img src="${initParam.root}img/me.png" height="20" id="meBtn">
			</td>
		</tr>
	</table>
</div>
<br><br><br><br><br><br><br><br>
<img src="${initParam.root}img/se.png" height="75"><br>
<input type="text" id="word">
<img id="searchBtn" src="${initParam.root}img/search_btn.jpg" height="30" style="vertical-align: -50%">
<br><br><br>
<img src="${initParam.root}img/text.png" height="35" style="margin-left: -12%">
</body>
</html>